// import Vue from 'vue'
// import store from '../store/index.js'
import * as request from './requests.js'
// console.log('requests', request)
// for(let key in request) {
// 	Vue.prototype[key] = request[key]
// }

export const reqCateList = () => request.$get('/classes/classify')

export const getBannerList = () => request.$get('/classes/banner')

export const getGoodsList = (page, wh) => request.$get(`/classes/goods?where=${wh}&limit=8&skip=${page*8}`)

export const reqReg = (userInfo) => request.$post('/users', userInfo)

export const reqlogin = (userInfo) => request.$post('/login', userInfo)